<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="resource/js/jquery-2.0.3.js"></script>
</head>
<body>
	<h1>测试的JSP</h1>
	<div id="div1"></div>
	<script type="text/javascript">
		$.ajax({
			"url": "DeptServlet?op=GetDept",
			"type": "get",
			"dataType": "json",
			"success": function(json){
				console.log(json);
				$("#div1").html(json[0].deptname);
			}
		});
	</script>
</body>
</html>